﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Themes/MasterPage.master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="mainContent" Runat="Server">
    
    <script runat="server">
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            news.CategoryId = SiteContext.Current.Language == "zh-cn"
                ? 2
                : 10;
        }
    </script>

    <script language="javascript" type="text/javascript">
        $(function () {
            $(".scrollable").scrollable({ next: ".righta", prev: ".lefta", circular: true }).autoscroll(2000);
        });
    </script>


    <lswweb:SkinControl ID="banner" SkinFileName="Globals_FlashBanner.ascx" runat="server"></lswweb:SkinControl>
    <div class="hotNews">
        <a class="lefta"></a><span>|</span><a class="righta"></a>
        <div class="scrollable" style="width:700px;float:left; overflow:hidden;_zoom:1;height:23px;">
            <div class="items">
                <lswweb:NewsList ID="news" IsRenderTag="false" EnableAspNetPager="false" runat="server">
                    <Skin>
                        <asp:Repeater ID="gridView" runat="server">
                            <ItemTemplate>  
                                <a href="<%# news.BuilderLinkUrl(Container.DataItem) %>">
                                    <%# Eval("Title") %></a>
                            </ItemTemplate>
                        </asp:Repeater>
                    </Skin>
                </lswweb:NewsList>
            </div>
        </div>
        <span class="more"><a href='<%= Maps.Content.GetMapNode(MapType.Gloabls,"news").Url %>'><%= this.Strings["more"] %></a></span>        
    </div>
    <div class="contentbody">
        <%--<a href="javascript:changeLeft();" class="next">
            <img src='<%= Globals.GetSkinPath("images/left.jpg") %>'></a> 
        <a href="javascript:changeRight();" class="pre">
            <img src='<%= Globals.GetSkinPath("images/right.jpg") %>'></a>--%>
        <div class="pro" id="marqueediv1">
            <div style="width: 1280px">
                <lswweb:ProductList ID="products" Status="Enabled" IsHot="true" OnBuilderLinkUrlHandler="Urls.ProductShow" PageIndex="1" PageSize="4" IsRenderTag="false" EnableAspNetPager="false" runat="server">
                    <Skin>
                        <asp:Repeater ID="gridView" runat="server">
                            <HeaderTemplate>
                                <ul>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <li>
                                    <a href="<%# products.BuilderLinkUrl(Container.DataItem) %>"> 
                                        <img width="160px" height="148px" alt="" src='<%# Eval("ImageUrl") %>'>
                                        <div class="showname"> 
                                            <%# Eval("Title") %></div>
                                        <div class="showbody">
                                            <%# Eval("Summary")%></div></a>
                                </li>
                            </ItemTemplate>
                            <FooterTemplate>
                                </ul>
                            </FooterTemplate>
                        </asp:Repeater>
                    </Skin>
                </lswweb:ProductList>
            </div>
        </div>
        <script language="javascript" type="text/javascript">
            var marquee1 = new Marquee("marqueediv1", 3, 2, 620, 166, 50, 2000, 100)
            function changeLeft() {
                marquee1.Direction = 2;
            }
            function changeRight() {
                marquee1.Direction = 3;
            }
 		</script>
        <!-- 3 -->
        <div class="news">
            <a href='<%= Maps.Content.GetMapNode(MapType.Gloabls,"jobs").Url %>'>
                <img src='<%= Globals.GetSkinPath("images/adv1.jpg") %>'></a>
            <div style="height:3px;font-size:1px;"></div>
            <a href='<%= Maps.Content.GetMapNode(MapType.Gloabls,"aboutUs").Url %>'>  
                <img src='<%= Globals.GetSkinPath("images/adv2.jpg") %>'></a>
        </div>
    </div>
</asp:Content>

